package com.redisdemo;
import redis.clients.jedis.Jedis;
//mvn exec:java -Dexec.mainClass="com.redisdemo.RedisStringJava"
public class RedisStringJava {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("localhost");
        System.out.println("Connection to server sucessfully");
        jedis.set("tutorial-name", "Redis tutorial");
        System.out.println("Stored string in redis:: " + jedis.get("tutorial-name"));
    }
}
